var objeto : GameObject;
var objeto1 : GameObject;
var objeto2 : GameObject;
var objeto3 : GameObject;
var menublack : GameObject;
var valor : float = 0.1;
var time : float;
function Start (){
Screen.showCursor = false;
}
function Update () {
time = Time.deltaTime + time;
if (time > 3 && light.intensity < 0.4 && time < 7) {
objeto.active = true;
light.intensity = light.intensity + valor;
}
if(time > 3.5){
objeto1.active = true;
}
if(time > 4){
objeto2.active = true;
}
if(time > 4.5){
objeto3.active = true;
}
if (time > 7 && light.intensity > 0 && time < 9){
light.intensity = light.intensity - valor;
}
if(time > 9){
objeto.active = false;
objeto1.active = false;
objeto2.active = false;
objeto3.active = false;
Application.LoadLevel("MainMenu");
}
}
